import type { OGSchemaType } from '../OGSchemaType.type';

const typeOptions = [
  { label: '网站', value: 'website' },
  { label: '艺术', value: 'article' },
  { label: '书籍', value: 'book' },
  { label: '概述', value: 'profile' },
  {
    type: 'group',
    label: '音乐',
    key: 'Music',
    children: [
      { label: '歌', value: 'music.song' },
      { label: '专辑', value: 'music.album' },
      { label: '播放列表', value: 'music.playlist' },
      { label: '广播电台', value: 'music.radio_station' },
    ],
  },
  {
    type: 'group',
    label: '视频',
    key: 'Video',
    children: [
      { label: '电影', value: 'video.movie' },
      { label: '电视剧', value: 'video.episode' },
      { label: '电视节目', value: 'video.tv_show' },
      { label: '其他视频', value: 'video.other' },
    ],
  },
];

export const website: OGSchemaType = {
  name: '常规信息',
  elements: [
    {
      type: 'select',
      label: '网页类型',
      placeholder: '选择一个网页类型',
      key: 'type',
      options: typeOptions,
    },
    { type: 'input', label: '标题', placeholder: '输入你的网站标题', key: 'title' },
    {
      type: 'input',
      label: '描述',
      placeholder: '输入你的网站描述',
      key: 'description',
    },
    {
      type: 'input',
      label: '网页链接',
      placeholder: '输入你的网站链接',
      key: 'url',
    },
  ],
};
